{template header}

    {template sidebar}

    <!-- artile begin -->
    <div class="article">
        {template title}

    <!--{if $a == 'index'}-->
        <form class="form-search" action="{$this->url($c, null, $this->get())}">
            <table>
                <tr><td class="td1" width="20%">旺旺ID：</td>
                    <td>

                        <div class="input-append">
                            <input type="text" name="key" class="span2 search-query" placeholder="请输入旺旺ID" />
                            <button type="button" class="btn search">搜索</button>
                        </div>
                    </td >
            </table>
            </tr>
        </form>
        <table>
            <tr>
                <th width="5%"><input type="checkbox" class="all"/></th>
                <th width="20%">淘宝单号</th>
                <th width="20%">买家旺旺</th>
                <th width="15%">购买日期</th>
                <th width="15%">金额</th>
                <th width="15%">操作</th>
            </tr>
        <!--{if $result}-->
            <!--{loop $result $v}-->
            <tr>
                <td><input type="checkbox" name="orderNo" value="{$v['orderNo']}" /></td>
                <td>{$v['taobaoOrderNo']}</td>
                <td>{$v['wwID']}</td>
                <td>{$v['orderDate']}</td>
                <td>{$v['price']}</td>
                <td class="operate">
                    <a href="{$this->url($c,'edit',array('orderNo'=>$v['orderNo']))}">查看详情</a>
                </td>
            </tr>
            <!--{/loop}-->
        <!--{else}-->
            <tr>
                <td colspan="6">没有记录!</td>
            </tr>
        <!--{/if}-->
        </table>
    <!--{/if}-->
    <!--{if $a == 'add' || $a == 'edit'}-->
        <form method="post" action="{$this->url($c)}">
         <table>
            <tr>
                <td class="td1" width="30%">淘宝单号：</td>
                <td class="td2" colspan="3">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="30" name="taobaoOrderNo" placeholder="" class="required" value="{$result['taobaoOrderNo'] }" />

                </td>
            </tr>
            <tr>
                <td class="td1" width="30%">购买日期：</td>
                <td class="td2" colspan="3">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="30" name="orderDate" placeholder="" class="required" value="{$result['orderDate'] }" />

                </td>
            </tr>
            <tr>
                <td class="td1" width="30%">商品编号：</td>
                <td class="td2" colspan="3">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="30" name="goodsNo" placeholder="" class="required" value="{$result['goodsNo'] }" />

                </td>
            </tr>

            <tr>
                <td class="td1" width="30%">货 号：</td>
                <td class="td2" colspan="3">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="30" name="materialNo" placeholder="" class="required" value="{$result['materialNo']}" />

                </td>
            </tr>
            <tr>
                <td class="td1" width="30%">颜色：</td>
                <td class="td2" colspan="3">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="30" name="color" placeholder="" class="required" value="{$result['color'] }" />

                </td>
            </tr>
            <tr>
                <td class="td1" width="30%">售前客服：</td>
                <td class="td2" colspan="3">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="30" name="operator" placeholder="" class="required" value="{$result['operator'] }" />
                </td>
            </tr>
         <table>
        </form>
    <!--{/if}-->
    </div>
<!-- artile end -->
{template footer}